doctype html

include ./mixins

html
  head
    meta(charset='utf-8')
    meta(http-equiv="X-UA-Compatible" content="IE=edge,chrome=1")
    //- 防贴广告
    meta(http-equiv='Cache-Control', content='no-siteapp')
    //- 在360浏览器中使用极速模式
    meta(name='renderer', content='webkit')
    //- 不允许百度转码
    //- meta(http-equiv='Cache-Control', content='no-siteapp')
    meta(name='viewport', content='width=device-width,initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui')
    meta(name='apple-mobile-web-app-capable', content='yes')
    meta(name='apple-mobile-web-app-status-bar-style', content='black')
    meta(name='apple-touch-fullscreen', content='yes')
    //- meta(name='format-detection', content='telephone=no,email=no')
    //- UC默认竖屏 ，UC强制全屏
    meta(name='full-screen', content='yes')
    meta(name='browsermode', content='application')
    //- QQ强制竖屏 QQ强制全屏
    meta(name='x5-orientation', content='portrait')
    meta(name='x5-fullscreen', content='true')
    meta(name='x5-page-mode', content='app')
    //- meta(name='App-Config', content='fullscreen=yes,useHistoryState=yes,transition=yes')
    meta(name='keywords', content=KEYWORDS)
    meta(name='description', content=DESCRIPTION)
    title= TITLE
    base(href=`${CONTEXT_PATH}/`)
    block css
    //- //[if lt IE 9]>
    //-   <script src=`${CONTEXT_PATH}/bower-components/html5shiv/dist/html5shiv.min.js`></script><![endif]
    //- -
    //-   const globals = {
    //-     REST_PATH: REST_PATH
    //-   };
    //- script.
    //-   window.App = { globals: !{JSON.stringify(globals)} };
    if NODE_ENV === 'production'
      script.
        var _hmt = _hmt || [];
        (function () {
          var hm = document.createElement("script");
          hm.src = "//hm.baidu.com/hm.js?bc720c287914736a64696995783cdeb2";
          var s = document.getElementsByTagName("script")[0];
          s.parentNode.insertBefore(hm, s);
        })();
  body
    block header

    block content

    block footer
      ul.sides-nav#sides-nav
        li.server
          .phone.out-b
            p.g 客服电话热线
            p.gre 400-0780-009
        li.wx
          .wx-code.out-b
            .qr-code
            p.text 关注“蜘蛛旅游”更多动态
        li.top
          a(href="javascript:scroll(0,0)")

      .footer
        ul.link-nav
          each item, index in NAV
            li
              a(href=CONTEXT_PATH + item.path, target='_blank')= item.name
        .copyright Copyright © 2014 - #{(new Date()).getFullYear()}, Ziztour.com&nbsp;&nbsp;All rights reserved&nbsp;&nbsp;&nbsp;ICP备案：粤14062853号
    
    
    //[if lt IE 10]>
      <script src='#{CONTEXT_PATH}/bower-components/es5-shim/es5-shim.min.js'></script><![endif]
    script.
      window.JSON || document.writeln('<script src="#{CONTEXT_PATH}/bower-components/json3/lib/json3.min.js"><\/script>');
      //- window.Promise || document.writeln('<script src="!{STATIC_PATH}/bower-components/es6-promise/es6-promise.auto.min.js"'+'>'+'<'+'/'+'script>');
      //- Object.assign || document.writeln('<script src="!{STATIC_PATH}/bower-components/es6-shim/es6-shim.min.js"'+'>'+'<'+'/'+'script>');
    if NODE_ENV !== 'development'
      script(src=`${CONTEXT_PATH}${DYN_JS_PATH}manifest.js?v=${VERSION}`)
      script(src=`${CONTEXT_PATH}${DYN_JS_PATH}vendor.js?v=${VERSION}`)
    block js
      script(src=`${CONTEXT_PATH}${DYN_JS_PATH}commons/nav.js?v=${VERSION}`)
